<?php
    $CI=& get_instance();
    $CI->load->model('pages_model');
?>
<div class="module">
    <div class="md-title">
        <h2>    
            Tin mới
        </h2>
    </div>
    <div class="md-content">
        <?php
            foreach($CI->pages_model->get_news_hot(5) as $item):
        ?>
            <div class="box-news">
                <div class="flleft news-left-hot">
                    <img src="<?=base_url('data/images').'/'.$item['image']?>" onerror="defaultimg(this)" />
                </div>
                <div class="flleft news-right-hot">
                    <h3>
                        <a href="<?=site_url('news').'/'.$item['id'].'/'.$item['alias']?>">
                            <?=$item['title']?>
                        </a>
                    </h3>
                </div>
                <div class="clr"></div>
            </div>
        <?php
            endforeach;
        ?>
    </div>
</div>